﻿using Kwd.Summary.Models;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;

namespace Kwd.Summary.Handler
{
  /// <summary>
  /// Handler to manage changes to the Content item.
  /// </summary>
  public class SummaryHandler : ContentHandler
  {
    /// <summary>
    /// Create, with a repo.
    /// </summary>
    public SummaryHandler(IRepository<SummaryPartRecord> repo)
    {
      //Use a default filter for this repository.
      this.Filters.Add(StorageFilter.For(repo));
    }
  }
}